#include "apue.h"
#include <time.h> 
#define MAXLINE2 1024
void main() {
	int n;
	char buf[MAXLINE2];
	printf("test\n");
	while ((n = read(fileno(stdin), buf, MAXLINE2)) > 0) {
		if (write(fileno(stdout), buf, n) != n)
			err_sys("write error");
	}
	if (n < 0)
		err_sys("read error");
	return;
}
